<template>
	<view>
		<web-view class="service" :src="url" @error="error" @load="load" />
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url:''
			};
		},
		onLoad(op) {
			if (op && op.url) {
			    this.url = decodeURIComponent(op.url);
			}
		},
		methods:{
			error(e){
				console.log(e);
			},
			load(e){
				console.log(e);
			}
		}
	}
</script>

<style lang="scss" scoped>
.service {
    width: 100vw;
    height: 100vh;
}
</style>
